<% include ../header.ejs %>

<header data-am-widget="header" data-am-sticky class="am-header am-header-default" id="appTemplates-Nav">
    <div class="am-header-left am-header-nav">
        <a href='javascript:history.go(-1)' class="">
            <img class="am-header-icon-custom" src="data:image/svg+xml;charset&#x3D;utf-8,&lt;svg xmlns&#x3D;&quot;http://www.w3.org/2000/svg&quot; viewBox&#x3D;&quot;0 0 12 20&quot;&gt;&lt;path d&#x3D;&quot;M10,0l2,2l-8,8l8,8l-2,2L0,10L10,0z&quot; fill&#x3D;&quot;%23fff&quot;/&gt;&lt;/svg&gt;" alt=""/>
        </a>
    </div>

    <h1 class="am-header-title">
        调研详情
    </h1>
</header>

<form class="am-form am-form-horizontal">
    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">券商:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=info.seller.name%></label>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">开始时间:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=moment(info.startTime).format('MM月DD日 hh:mm')%></label>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">结束时间:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=moment(info.finishTime).format('MM月DD日 hh:mm')%></label>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">行业:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=info.industry.industryName%></label>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">调研类型:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=info.type%></label>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">调研公司:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=info.companyName%></label>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">调研范围:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=info.range%></label>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">调研内容:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=info.content%></label>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">调研地点:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=info.province%> <%=info.city%></label>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">联系人:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=info.contact%></label>
        </div>
    </div>

    <div class="am-form-group">
        <label for="doc-ipt-3" class="am-u-sm-3 am-form-label">参加人:</label>
        <div class="am-u-sm-9">
            <label for="doc-ipt-3" class="am-form-label"><%=users%></label>
        </div>
    </div>
</form>

<%if(isJoin){%>
<form class="am-form" method="post" action="exit">
    <fieldset>
        <input type="hidden" name="actionId" value="<%=info.rowId%>"/>
        <button id="btnExit" type="button" class="am-btn am-btn-danger am-btn-block" onclick="submit()"><i class="am-icon-undo"></i> 取消参加 </button>
    </fieldset>
</form>
<%} else {%>
<form class="am-form" method="post" action="join">
    <fieldset>
        <input type="hidden" name="actionId" value="<%=info.rowId%>"/>
        <input type="hidden" name="actionType" value="surveying"/>
        <input type="hidden" name="userType" value="participant"/>
        <input type="hidden" name="joinType" value="onsite"/>
        <input type="hidden" name="createUid" value="<%=info.createUid.createUid%>"/>
        <button type="button" class="am-btn am-btn-success" onclick="submit()"><i class="am-icon-plus"></i> 现场参加 </button>
    </fieldset>
</form>
<%}%>

<% include ../footer.ejs %>
